﻿@model Back_end.Models.News

@{
    ViewBag.Title = "详细";
}

<h2>@ViewBag.Title </h2>

<div>
    <h4>新闻</h4>
    <hr />
    <dl class="dl-horizontal">
        <dt>
            @Html.DisplayNameFor(model => model.UserName)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.UserName)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.Title)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.Title)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.PublishedDate)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.PublishedDate)
        </dd>

		<dt>
			@Html.DisplayNameFor(model => model.Text)
		</dt>

		<dd>
			@Html.DisplayFor(model => model.Text)
		</dd>

		<dt>
			@Html.DisplayNameFor(model => model.ImgPath)
		</dt>

		<dd>
			<img src="@Model.ImgPath" class="img-thumbnail col-md-4"/>
		</dd>

    </dl>
</div>
<p>
    @Html.ActionLink("编辑", "Edit", new { id = Model.NewsId }) |
    @Html.ActionLink("返回列表", "Index")
</p>
